13 lines
179 B
Nim
13 lines
179 B
Nim
discard """
|
|
errormsg: "type mismatch"
|
|
line: 13
|
|
"""
|
|
{.experimental: "notnil".}
|
|
type
|
|
PObj = ref TObj not nil
|
|
TObj = object
|
|
x: int
|
|
|
|
proc q2(x: string) = discard
|
|
|
|
q2(nil)
|