File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ to floating point types.
311311| int | explicit | explicit | explicit | | implicit | implicit | implicit
312312| long | explicit | explicit | explicit | explicit | | implicit | implicit
313313| float | explicit | explicit | explicit | explicit | explicit | | implicit
314- | float | explicit | explicit | explicit | explicit | explicit | explicit |
314+ | double | explicit | explicit | explicit | explicit | explicit | explicit |
315315|====
316316
317317
@@ -376,7 +376,7 @@ cast would normally be required between the non-def types.
376376def x; // Declare def variable x and set it to null
377377x = 3; // Set the def variable x to the literal 3 with an implicit
378378 // cast from int to def
379- double a = x; // Declare double variable y and set it to def variable x,
379+ double a = x; // Declare double variable a and set it to def variable x,
380380 // which contains a double
381381int b = x; // ERROR: Results in a run-time error because an explicit cast is
382382 // required to cast from a double to an int
You can’t perform that action at this time.
0 commit comments