mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
6cdf05f1ec
This adds new `Int8`, `Int16`, `Int32` and `Int64` data types to the compiler, thus working towards properly specified integer types as discussed in #1048. In addition, the following changes / corrections are made: * Support casts from `Char`, `String`, and `Double` to all integer types (and back). This fixes #1270. * Make sure that all casts to limited-precision integers are properly bounds checked (this was not the case so far for casts from `String` and `Double` to `Int`) * Add a thorough set of tests to make sure all bounds checks work correctly for all supported casts and arithmetic operations
16 lines
773 B
Plaintext
16 lines
773 B
Plaintext
Processing as TTImp
|
|
Written TTC
|
|
Yaffle> Bye for now!
|
|
Processing as TTImp
|
|
Dot2.yaff:15:1--16:1:When elaborating left hand side of Main.half:
|
|
Dot2.yaff:15:28--15:30:Pattern variable {P:n:365} unifies with ?{P:m:365}_[]
|
|
Yaffle> Bye for now!
|
|
Processing as TTImp
|
|
Dot3.yaff:18:1--19:1:When elaborating left hand side of Main.addBaz3:
|
|
Dot3.yaff:18:10--18:15:Can't match on ($resolved357 ?{P:x:370}_[] ?{P:x:370}_[]) (Not a constructor application or primitive) - it elaborates to ($resolved357 ?Main.{_:13}_[] ?Main.{_:14}_[])
|
|
Yaffle> Bye for now!
|
|
Processing as TTImp
|
|
Dot4.yaff:17:1--18:1:When elaborating left hand side of Main.addBaz4:
|
|
Dot4.yaff:17:33--17:34:Can't match on ?{P:x:372}_[] (Non linear pattern variable) - it elaborates to ?Main.{dotTm:15}_[]
|
|
Yaffle> Bye for now!
|