Castor Tack wrote:I mean, the proposed code for line *** has the same structure as the code in %%%. Why does the compiler has different reactions?
The two constructs are vastly different. In the first case you're creating an array, but in the second case you're creating just a single object and passing an int to its constructor. You know that the object you're creating represents an array, but is it an abstract, higher-level reasoning that is irrelevant to the compiler.