Commit Graph

1004 Commits

Author SHA1 Message Date
gingerBill
e38a08013e Remove #relative types from the compiler 2024-11-14 16:17:24 +00:00
gingerBill
f02d621a8e Merge pull request #4394 from seventh-chord/errormessages
Suggestion when assigning enum to bit_set
2024-11-06 13:10:17 +00:00
gingerBill
a0b35f67f8 Fix previous commit for arrays 2024-11-04 12:51:54 +00:00
gingerBill
bbf76fa43e Fix bug for foo().bar where foo() is a 0-value expression 2024-11-04 12:49:43 +00:00
gingerBill
f32e27d2e4 Fix bug caused due to incorrect type checking looking for context not defined in a context 2024-10-27 11:10:55 +00:00
Morten Hauke Solvang
7f4ce2e179 Suggestion when assigning enum to bit_set 2024-10-19 10:25:56 +02:00
gingerBill
417e9bb37f Fix #4373 2024-10-13 22:26:04 +01:00
Laytan Laats
3ff887c6b6 fix not erroring on invalid ternary
For example: `a: f32 = true ? 1 : len` would get to the back-end without
errors.

Fixes #1690
2024-10-02 15:55:46 +02:00
Feoramund
acbf5c8d97 Forbid labelled or-branch expressions within defer 2024-09-19 05:59:37 -04:00
Laytan Laats
603efa860a add '#caller_expression' 2024-09-14 22:13:37 +02:00
gingerBill
3166c7bef9 Add Suggested Example for using an inline procedure which enables a target feature 2024-09-12 10:07:09 +01:00
Laytan Laats
387f56634d fix reuse of slice for varargs with poly types 2024-09-12 02:25:44 +02:00
gingerBill
27ed10746d Allow transmute(Bit_Set)~T(0) 2024-09-11 23:08:38 +01:00
gingerBill
9b06ea5bfd Fix #4229 for edge case os.Error/os.Errno legacy bodge 2024-09-11 12:01:01 +01:00
Jeroen van Rijn
564c7821c5 Allow ExactValue_Invalid in assert.
Fixes #4225
2024-09-10 15:19:12 +02:00
Feoramund
9871ad5fc8 Remove extra format item at end of context error message 2024-09-01 17:50:50 -04:00
gingerBill
b4bdb73158 Fix new(sync.Mutex) 2024-08-31 15:06:20 +01:00
gingerBill
476030dd28 Fix #4156 2024-08-31 13:51:35 +01:00
gingerBill
38ea276231 Make ~some_bit_set work on only the possible bits by doing a mask with the full set 2024-08-30 10:48:21 +01:00
gingerBill
ca4d91a8a3 Fix #4079 2024-08-24 12:26:41 +01:00
gingerBill
65543b993f Merge pull request #4130 from fusion32/fix-ambiguous-generic-type-names
fix ambiguous generic type names
2024-08-24 11:50:02 +01:00
gingerBill
00fb60d3d9 #4115 Add Suggestion: 'typeid_of(T)' 2024-08-24 11:48:32 +01:00
gingerBill
68a83abcd6 #4119 Add error when doing {.A | .B} instead of {.A, .B} with a suggestion to do surround it in parentheses to make it clear it is intended 2024-08-24 11:44:59 +01:00
gingerBill
4458ca4585 Fix #4126 2024-08-24 11:40:02 +01:00
fusion32
5ef8a092f6 fix wrong exact value kind comparison 2024-08-23 17:50:27 -03:00
fusion32
c969bee86d fix ambiguous generic type names 2024-08-23 17:18:10 -03:00
Jeroen van Rijn
07aedb0b89 , 2024-08-21 18:42:11 +02:00
Jeroen van Rijn
1bcc074223 dash 2024-08-21 14:18:12 +02:00
Jeroen van Rijn
6b4b0cea5d Add table-driven (in)definite article to some errors. 2024-08-20 22:13:31 +02:00
gingerBill
d99a6ad003 Add suggestion for ~uint(0) if cast(uint)-1 is done 2024-08-18 22:52:57 +01:00
Laytan Laats
b2e64b7ce0 implement lshrti3 on wasm 2024-08-18 17:09:57 +02:00
gingerBill
60b2979cfd Fix #4024 2024-08-18 12:10:46 +01:00
gingerBill
5c06fcd346 Fix #4064 2024-08-18 12:00:27 +01:00
Laytan Laats
a1d518442a fix type hint propogation for shift
Fixes #3856
2024-08-12 23:39:07 +02:00
Laytan Laats
f5fe0de0fd add clarity for diverging mismatch error 2024-08-10 23:34:35 +02:00
Jeroen van Rijn
6175efde3d Fix crash if referencing import "aliased" in other file.
Fixes #4026
2024-08-05 17:23:50 +02:00
gingerBill
0bedd3357a Disallow err != 0 with os.Error when -strict-style is enabled 2024-08-04 14:58:12 +01:00
gingerBill
5187bb68bb Hack: Convert 0 to nil 2024-08-04 12:08:52 +01:00
gingerBill
1d75a612d5 os.Errno -> os.Error 2024-08-04 11:47:23 +01:00
gingerBill
9f9abb8fb3 Use union #shared_nil for os.Error 2024-08-04 11:05:30 +01:00
gingerBill
e60951a902 Begin converting os.Errno to be a nil-able type as a transition period 2024-08-04 10:51:08 +01:00
gingerBill
1e37eaf54d Begin work for bit_set[...; [N]T] (not working) 2024-07-15 14:49:20 +01:00
gingerBill
eb6805ef40 Disable the need for mutexes in single threaded checker stage 2024-07-15 01:44:23 +01:00
gingerBill
11e2aa2d51 Improve error message 2024-07-14 15:31:40 +01:00
gingerBill
556355ef05 Disallow global use of target specific procedure calls 2024-07-14 15:30:40 +01:00
gingerBill
3dff83f3dc Mock out #no_capture for future use 2024-07-14 12:39:30 +01:00
gingerBill
edc793d7c1 Add #no_capture args: ..T to reuse the backing array stack memory 2024-07-14 11:39:05 +01:00
gingerBill
38315f83da Merge pull request #3898 from laytan/fix-enable-target-features-for-poly-procs
fix require/enable target feature attribute on poly procs
2024-07-10 13:22:06 +01:00
Laytan Laats
40625b24e2 fix optimization mode, cold, and disabled not being applied to poly procs 2024-07-09 19:49:12 +02:00
Laytan Laats
1fce5791a1 fix require/enable target feature attribute on poly procs 2024-07-09 19:33:25 +02:00