x.cobra
- Code: Select all
class X
get a from var = ""
and
e.cobra
- Code: Select all
class T
def main is shared
x = X()
puts x.a
When I run them, like cobra -c x.cobra e.cobra, I receive this error:
- Code: Select all
e.cobra(4): error: e.cobra(4,8): error: Expecting EOL, but got "x" (ID) instead.
Compilation failed - 1 error, 0 warnings
If I run them separately, after adding a main method to the first file, they work. What am I doing wrong?