aboutsummaryrefslogtreecommitdiff
path: root/test/compile_errors.zig
AgeCommit message (Collapse)Author
2018-10-01Fixed StackTrace not being resolved when panic is invalid (#1615)Jimmi Holst Christensen
2018-09-26fix crash when compile error evaluating return...Andrew Kelley
...type of inferred error set. closes #1591
2018-09-26the last number in a packed ptr is host int bytesAndrew Kelley
See #1121
2018-09-26fix implicit casting to *c_voidAndrew Kelley
closes #1588 also some small std lib changes regarding posix sockets and one doc typo fix
2018-09-25fix crash on runtime index into slice of comptime typeAndrew Kelley
closes #1435
2018-09-22fix @compileLog having unintended side effectsAndrew Kelley
closes #1459
2018-09-22add compile error for slice of undefined sliceAndrew Kelley
closes #1293
2018-09-21stage1: unify 2 implementations of pointer derefAndrew Kelley
I found out there were accidentally two code paths in zig ir for pointer dereference. So this should fix a few bugs. closes #1486
2018-09-21fixupsAndrew Kelley
2018-09-21Merge branch 'BitByteOffsetOfs' of https://github.com/raulgrell/zig into ↵Andrew Kelley
raulgrell-BitByteOffsetOfs
2018-09-20add compile error for casting const array to mutable sliceAndrew Kelley
See #1565
2018-09-18add compile error for slice.*.lenAndrew Kelley
closes #1372
2018-09-17add compile error for @ptrCast 0 bit type to non-0 bit typeAndrew Kelley
2018-09-17add compile error for non-optional types compared against nullAndrew Kelley
closes #1539
2018-09-14fix alignment of structsAndrew Kelley
closes #1248 closes #1052 closes #1154
2018-09-13remove `this`. add `@This()`.Andrew Kelley
closes #1283
2018-09-13remove the scope parameter of setFloatModeAndrew Kelley
also document that scopes inherit this value. See #367 See #1283
2018-09-13add compile error for merging non- error setsAndrew Kelley
closes #1509
2018-09-10fix llvm assertion and missing compile errorAndrew Kelley
2018-09-07builtin functions: @byteOffsetOf and @bitOffsetOfraulgrell
2018-09-07fix crash when var init has compile errorAndrew Kelley
and then the var is referenced closes #1483
2018-09-05stage1: improve handling of generic fn proto type exprAndrew Kelley
closes #902
2018-09-05add compile error for using outer scoped runtime variablesAndrew Kelley
from a fn defined inside it. closes #876
2018-09-05allow comptime_int to @floatToIntAndrew Kelley
2018-09-05Added compilation error when a non-float is given to @floatToInt()hfcc
2018-09-05stage1 compile error instead of crashing for unsupported comptime ptr castAndrew Kelley
See #955
2018-09-05stage1: fix crash when invalid type used in array typeAndrew Kelley
closes #1186
2018-09-04compile error for @noInlineCall on an inline fnAndrew Kelley
closes #1133
2018-09-04add compile error for comptime control flow inside runtime blockAndrew Kelley
closes #834
2018-08-28add test coverage for invalid switch expression parameterAndrew Kelley
closes #604
2018-08-28add compile error for function prototype with no bodyAndrew Kelley
closes #1231
2018-08-27fix @typeInfo unable to distinguish compile error vs no-payloadAndrew Kelley
closes #1421 closes #1426
2018-08-03better support for `_` identifierkristopher tate
* disallow variable declaration of `_` * prevent `_` from shadowing itself * prevent read access of `_` closes #1204 closes #1320
2018-08-02pull request fixupsAndrew Kelley
* clean up parser code * fix stage2 parse and render code * remove redundant test * make stage1 compile tests leaner
2018-08-02test/compile_errors.zig: update test to reflect that the promise symbol is ↵kristopher tate
no in scope with suspend; Tracking Issue #1296 ;
2018-08-02test/compile_errors.zig: @handle() in non-async functionkristopher tate
Tracking Issue #1296 ;
2018-08-02test/compile_errors.zig: @handle() called outside of function definition;kristopher tate
Tracking Issue #1296 ;
2018-07-26add compile error for ignoring return value of while loop bodiesAndrew Kelley
closes #1049
2018-07-25add compile error for missing parameter name of generic functionAndrew Kelley
2018-07-25add compile error for non-inline for loop on comptime typeAndrew Kelley
2018-07-24fix logic for determining whether param requires comptimeAndrew Kelley
closes #778 closes #1213
2018-07-16all integer sizes are available as primitivesAndrew Kelley
* fix wrong implicit cast for `@IntType` bit_count parameter. * fix incorrect docs for `@IntType` bit_count parameter. closes #1242 closes #745 closes #1240
2018-07-11add compile error for disallowed types in extern structsAndrew Kelley
closes #1218
2018-07-10fix crash when calling comptime-known undefined function ptrAndrew Kelley
closes #880 closes #1212
2018-07-09langref: docs for invalid error set cast and incorrect pointer alignmentAndrew Kelley
also add detection of incorrect pointer alignment at compile-time of pointers that were constructed with `@intToPtr`.
2018-07-09fix crash on @ptrToInt of a *voidAndrew Kelley
closes #1192
2018-07-07add @popCount intrinsicAndrew Kelley
2018-07-06add compile error notes for where struct definitions areAndrew Kelley
closes #1202
2018-07-04Fix assertion crash on enum switch valuesIsaac Hier
2018-07-01Merge pull request #1185 from ziglang/undefined-at-comptime-improvementsAndrew Kelley
Operators now throw a compiler error when operating on undefined values