-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression from 2.0 to devel
with dirty
template
#23611
Comments
Simplified: # a.nim
import "."/b
s[int]() # b.nim
import "."/c
type K = object
lex: V
proc s*[T]() =
var r: K
x(r.lex) # c.nim
type
U* = enum
errNone
V* = object
err: U
template x*(lex: V) {.dirty.} =
lex.err = errNone Removing the So this very likely fails now because of #23588, which again, means this only worked since |
We need the |
To the extent status-im/nim-json-serialization#90 solves this, I'm fine with that. I reported this as a regression fairly mechanically, not so much prescriptively as descriptively. But I tend to agree it accidentally hit a weird edge case. |
Description
a.nim
b.nim
c.nim
Nim Version
Compiles:
Does not compile:
Current Output
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: