/* * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /// assignment compatible types import java.io.*; import java.net.*; public class a { final int FI = 2; final int FIBIG = 200000000; void f() { int i1= -2147483649; int i2= 2147483648; int i3 = -2147483648; int i4 = -0x7fffffff; int i5 = -017777777777; int i6 = 0x; int i7 = 0xdeadbeef; int i8 = 0xffffffff; int i9 = 0xffffffff9; int i10 = 0x80000000; int i11 = 0000000000000+0x000000000; int i12 = 0x00000000000000000000000; int i13 = 040000000000; int i14 = 020000000000; int i15 = 0xf044332211; int octale = 017777777777; // negative int bi1 = 0b0010; int bi2 = 0B0010; int bi3 = 1_2; long l1 = -9223372036854775809L; long l2 = 9223372036854775808L; long l3 = -9223372036854775808L; long l4 = -2147483649; long l5 = 2147483648; long l6 = 0xL; long l7 = 0xdeadbeefffffffffL; long l8 = 0xffffffffffffffffL; long l9 = 0xffffffffffffffff9L; long l10 = 0x8000000000000000L; long octalValue = 01777777777777777777600L; long octalValua = 01777777777777777777777L; long bl1 = 0b0010l; long bl2 = 0B0010L; long bl3 = 10_24L; float f1= 1e-46f; float f2 = 1e39f; float f3 = 0E1F; float f4 = 0xabc.defP2f; float bf1 = 3.141_592f; double dd1 = 1e-324; double dd2 = 1e309; double dd3 = 0E1; double dd4 = 0x1.fffffffffffffP1023; double d1 = 1.E; double d2 = 1.e; double d3 = 1.E+; double d4 = 1.E-; double d5 = .1eD; double d6 = .1e+D; double d7 = 1e+D; double d8 = 1e-D; double d9 = 1e-d; double d10 = 1e-F; double d11 = 1e-f; double d12 = 3.141_592_653_589_793d; } }