ajterr:10001

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
ajterr:10001 [2025-02-14 21:18] 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 =====
  
-A ''#import'' parser instruction was used inside a class or an enum defintion.+A ''#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? =====
  • ajterr/10001.1739564328.txt.gz
  • Last modified: 2025-02-14 21:18
  • by admin