Prohibit callable references to object members

To be able to make them more useful in the future, i.e. bound to the object
instance
This commit is contained in:
Alexander Udalov
2015-10-14 16:39:43 +03:00
parent 63dfe13c43
commit ced1edcf98
26 changed files with 122 additions and 218 deletions
@@ -4,12 +4,15 @@ fun box(): String {
assertEquals(java.lang.Integer.MIN_VALUE, Int.MIN_VALUE)
assertEquals(java.lang.Byte.MAX_VALUE, Byte.MAX_VALUE)
/*
// TODO: uncomment when callable references to object members are supported
assertEquals("MIN_VALUE", (Int.Companion::MIN_VALUE).name)
assertEquals("MAX_VALUE", (Double.Companion::MAX_VALUE).name)
assertEquals("MIN_VALUE", (Float.Companion::MIN_VALUE).name)
assertEquals("MAX_VALUE", (Long.Companion::MAX_VALUE).name)
assertEquals("MIN_VALUE", (Short.Companion::MIN_VALUE).name)
assertEquals("MAX_VALUE", (Byte.Companion::MAX_VALUE).name)
*/
return "OK"
}