ajterr:10001

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ajterr:10001 [2025-02-14 21:17] – created adminajterr:10001 [2025-08-30 21:13] (current) admin
Line 1: Line 1:
-====== Importing is only allowed outside of classes (AJTERR10001) ======+====== Importing is only allowed before declaring any classes (AJTERR10001) ======
  
 ^ Product(s) | KARO.NET Compiler | ^ Product(s) | KARO.NET Compiler |
Line 5: Line 5:
 ===== Description ===== ===== Description =====
  
-`#importparser instruction was used inside a class or an enum defintion.+''#import'' parser instruction was used inside a class or an enum defintion or after it. 
 + 
 +<code> 
 + 
 +test::testClass { 
 +   #import sl; 
 +// ^^^^^^^^^^^ Import parser instruction is invalid here 
 +
 + 
 +</code>
  
 ===== How can I resolve this error? ===== ===== How can I resolve this error? =====
  
-Put the `#importparser exception on top of the file outside the class/enum definition.+Put the ''#import'' parser exception on top of the file outside the class/enum definition.
  
 {{tag>AJTERR KARONETCOMPILER}} {{tag>AJTERR KARONETCOMPILER}}
  • ajterr/10001.1739564266.txt.gz
  • Last modified: 2025-02-14 21:17
  • by admin