Based on recent report of Simon, I did a short test:
type
OP = ptr O
O = object
i: int
proc int(o: OP): int =
0
var j: int
var k: int8 = 0
j = int(k)
nim c t.nim
Hint: used config file '/home/stefan/Nim/config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: t [Processing]
t.nim(12, 9) Error: type mismatch: got (int8)
but expected one of:
proc int(o: OP): int
nim -v
Nim Compiler Version 0.14.3 (2016-08-30) [Linux: amd64]
Copyright (c) 2006-2016 by Andreas Rumpf
- Cheetah leaps into safari jeep in Kenya NFLlive
- Is this a compiler bug? Stefan_Salewski
- Re: Is this a compiler bug? flyx
- Re: Is this a compiler bug? Stefan_Salewski
