# .multi. 607-multi-file-04.cobra # this is the cross over test for class decls, but spread between files class Test def main is shared assert Letter.fromNumber(Number(1)).value=='a' assert Number.fromLetter(Letter('b')).value==2 class Letter var _value as String cue init(value as String) base.init _value = value get value from _value def fromNumber(n as Number) as Letter? is shared branch n.value on 1, return Letter('a') on 2, return Letter('b') return nil