interface IGeneric get x as T class Test implements IGeneric get x as int return 7 def main is shared assert Test().x==7