Skip to content

Commit 27d8c86

Browse files
authored
Fix 11493 - correctly explain code snippet behaviour (#3517)
Signed-off-by: Matei Hriscu <[email protected]> Co-authored-by: Matei Hriscu <[email protected]>
1 parent 8548a7d commit 27d8c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/type.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ $(SPEC_RUNNABLE_EXAMPLE_FAIL
451451
---
452452
ubyte u1 = -1; // error, -1 cannot be represented in a ubyte
453453
ushort u2 = -1; // error, -1 cannot be represented in a ushort
454-
uint u3 = int(-1); // ok, -1 can be represented in a uint
455-
ulong u4 = long(-1); // ok, -1 can be represented in a ulong
454+
uint u3 = int(-1); // ok, -1 can be represented in an int, which can be converted to a uint
455+
ulong u4 = long(-1); // ok, -1 can be represented in a long, which can covnerted to a ulong
456456
---
457457
)
458458

0 commit comments

Comments
 (0)