We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb141aa commit a0e9223Copy full SHA for a0e9223
1 file changed
pitfalls/Promotion.java
@@ -0,0 +1,10 @@
1
+void main() {
2
+
3
+ byte x = 10;
4
+ byte y = 20;
5
6
+ var res = (Object) (x + y);
7
8
+ IO.println(res);
9
+ IO.println(res.getClass().getName());
10
+}
0 commit comments