Author
anonymous
almost 4 years ago
Language
Nim
Compiler
nim 1.4.6
Options
Author
anonymous
almost 4 years ago
$ nim c ./prog.nim
Hint: used config file '/opt/wandbox/nim-1.4.6/config/nim.cfg' [Conf]
Hint: used config file '/opt/wandbox/nim-1.4.6/config/config.nims' [Conf]
.......
let :tmp_5050154 = @[a.kind, b.kind]
if :tmp_5050154 == @[TypeKind(1), TypeKind(1)]:
return VnType(kind: tkInt, intVal: `-`(a.intVal, b.intVal))
elif :tmp_5050154 == @[TypeKind(1), TypeKind(2)]:
return VnType(kind: tkFloat, floatVal: `-`(a.intVal, b.floatVal))
elif :tmp_5050154 == @[TypeKind(2), TypeKind(2)]:
return VnType(kind: tkFloat, floatVal: `-`(a.floatVal, b.floatVal))
else:
raise newException(UnexpectedArgType, "Could not apply procedure " & "-" &
" to arguments to types " &
$inKind)
/home/jail/prog.nim(71, 6) Hint: '-' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_system.nim
CC: prog.nim
Hint: [Link]
Hint: 25411 lines; 0.758s; 25.488MiB peakmem; Debug build; proj: /home/jail/prog.nim; out: /home/jail/prog [SuccessX]
Exit Code:
0