Fix parser bug with type classes (#7480)
This commit is contained in:
parent
8b7c2bd067
commit
d6793ded27
2 changed files with 18 additions and 0 deletions
17
tests/parser/ttypeclasses.nim
Normal file
17
tests/parser/ttypeclasses.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
discard """
|
||||
action: run
|
||||
"""
|
||||
|
||||
type
|
||||
R = ref
|
||||
V = var
|
||||
D = distinct
|
||||
P = ptr
|
||||
|
||||
var x: ref int
|
||||
var y: distinct int
|
||||
var z: ptr int
|
||||
|
||||
doAssert x is ref
|
||||
doAssert y is distinct
|
||||
doAssert z is ptr
|
||||
Loading…
Add table
Add a link
Reference in a new issue