class Test def main # expressions i as int = sharp'2+2' assert i==4 i = sharp'i*2' assert i==8 # statements sharp'i = 5' # old syntax .oldSyntax def oldSyntax is shared i as int = $sharp('2+2') #.warning. deprecated assert i==4 i = $sharp('i*2') #.warning. deprecated assert i==8