class Test
def main is shared
cobra = Compiler()
compiling with
- Code: Select all
cobra -ref:cobra.exe -ref:Cobra.Lang.dll test.cobra
generate an internal error:
- Code: Select all
(empty)(1): error: COBRA INTERNAL ERROR / RequireException / ; sourceSite = C:\home\dev\src\dotnet\projects\cobralanguage\Source\Container.cobra:148 in NameSpace.addDecl for object NameSpace-sh(5236, name=Lang, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=0, isUnified=true, didBindUse=false, superNameSpace=NameSpace-mi(5234, name=Cobra, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=1, isUnified=true, didBindUse=false, 5234), unifiedNameSpace=nil, 5236); info = nil; this = NameSpace-de(5236, name=Lang, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=0, isUnified=true, didBindUse=false, superNameSpace=NameSpace-mi(5234, name=Cobra, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=1, isUnified=true, didBindUse=false, 5234), unifiedNameSpace=nil, declsInOrder=['Class'-'sh'(5237, 'name'='CobraCore', 'didBindInh'=false, 'didBindInt'=false, 'didBindImp'=false, 'token'='Token.empty', 'd
Compilation failed - 1 error, 0 warnings
Not running due to errors above.
Thanks!