mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
* basic stability improvements; refs nimsuggest * fixed dot operator recursive loop & macro suggest * hacky fix for run away dot operator sem check Committing this mostly to make the issue more clear. Perhaps get better feedback. * semExprWithType seems like a better place to check * fixed error messages const case expressions * Clean-up test * stopped the dot operator madness No longer get infinite recursion when seming broken code with a dot operator macro like in jsffi. Co-authored-by: Araq <rumpf_a@web.de>
21 lines
188 B
Nim
21 lines
188 B
Nim
discard """
|
|
output: '''
|
|
test1
|
|
test2
|
|
'''
|
|
"""
|
|
|
|
import jsffi
|
|
|
|
type
|
|
C = object
|
|
props: int
|
|
|
|
var c: C
|
|
|
|
when compiles(c.props):
|
|
echo "test1"
|
|
|
|
when not compiles(d.props):
|
|
echo "test2"
|