summary refs log tree commit diff stats
path: root/tests/constructors
Commit message (Collapse)AuthorAgeFilesLines
* Turn some of the errors back into warningsZahary Karadjov2020-04-011-14/+32
|
* Replace tfHasRequiresInit with a more accurate mechanismZahary Karadjov2020-04-011-0/+112
| | | | | | | | | The new mechanism can deal with more complex scenarios such as not nil field appearing in a non-default case object branch or a field within a generic object that may depend on a when branch. The commit also plugs another hole: the user is no longer able to create illegal default values through seq.setLen(N).
* Fix https://github.com/nim-lang/Nim/issues/4907Zahary Karadjov2020-04-011-1/+40
|
* Close https://github.com/nim-lang/Nim/issues/11428Zahary Karadjov2020-04-011-0/+12
|
* Perform nil checks during object construction and within compiles()Zahary Karadjov2020-04-011-3/+2
| | | | Close https://github.com/nim-lang/Nim/issues/6494
* not nil types are illegal to construct through default(T)Zahary Karadjov2020-04-011-0/+14
|
* Turn the warning for uninitialized (result) variables into errorsZahary Karadjov2020-04-011-2/+81
|
* Plug another hole: default(T) forbidden for objects requiring initializationZahary Karadjov2020-04-011-0/+5
|
* Don't allow 'var x: T' for objects that require initializationZahary Karadjov2020-04-011-0/+8
|
* More sophistication; Allow requiresInit to be specified per-fieldZahary Karadjov2020-04-011-0/+31
|
* require errormsg to be specified before file.Arne Döring2018-12-112-2/+2
|
* make tests green againAndreas Rumpf2018-05-021-2/+2
|
* Fixes #5965 (#6237)Daniil Yarancev2017-08-142-0/+20
|
* object construction: test cases and manual additionsZahary Karadjov2017-04-061-0/+122