basmith / stab-language

Automatically exported from code.google.com/p/stab-language
Apache License 2.0
0 stars 0 forks source link

Using keywork "import" instead of "using" #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using the keyword "import" instead of the "using" gives the error message:

error 33: A package does not directly contain members such as fields or methods

I thing, it should be a parsing error.

Original issue reported on code.google.com by ice.ta...@gmail.com on 5 Aug 2010 at 9:37

GoogleCodeExporter commented 8 years ago
The same error occurs if using the keyword "namespace" instead of "package"

Original comment by ice.ta...@gmail.com on 5 Aug 2010 at 9:42

GoogleCodeExporter commented 8 years ago
This is the same error message as in C#. The compiler parses an identifier in 
the global package and thinks the programmer was trying to define a field or a 
method.

Original comment by stab.hac...@gmail.com on 7 Aug 2010 at 2:40