Zahary Karadjov
|
be95f8fdfa
Turn some of the errors back into warnings
|
4 years ago |
Zahary Karadjov
|
ce9a4ed124
Replace tfHasRequiresInit with a more accurate mechanism
|
4 years ago |
Zahary Karadjov
|
e63b673ce2
Fix https://github.com/nim-lang/Nim/issues/4907
|
4 years ago |
Zahary Karadjov
|
06438ed143
Close https://github.com/nim-lang/Nim/issues/11428
|
4 years ago |
Zahary Karadjov
|
4f3d309fb0
Perform nil checks during object construction and within compiles()
|
4 years ago |
Zahary Karadjov
|
f3be5a716f
not nil types are illegal to construct through default(T)
|
4 years ago |
Zahary Karadjov
|
1b570f2b18
Turn the warning for uninitialized (result) variables into errors
|
4 years ago |
Zahary Karadjov
|
8ae48292ff
Plug another hole: default(T) forbidden for objects requiring initialization
|
4 years ago |
Zahary Karadjov
|
05a0ec4adb
Don't allow 'var x: T' for objects that require initialization
|
4 years ago |
Zahary Karadjov
|
7652aede41
More sophistication; Allow requiresInit to be specified per-field
|
4 years ago |
Andreas Rumpf
|
74fe7a800b
make tests green again
|
6 years ago |
Zahary Karadjov
|
f162214d5d
object construction: test cases and manual additions
|
7 years ago |