Ignoring not static final fields.

Added tests with class object of trait and val inside object.
This commit is contained in:
Evgeny Gerashchenko
2014-07-07 17:38:08 +04:00
parent aa9384a207
commit 42cba1cc3c
10 changed files with 69 additions and 1 deletions
@@ -0,0 +1,14 @@
Cleaning output files:
out/production/module/test/Trait$$TImpl.class
out/production/module/test/Trait$object.class
out/production/module/test/Trait.class
End of files
Compiling files:
src/const.kt
End of files
Cleaning output files:
out/production/module/test/Usage.class
End of files
Compiling files:
src/usage.kt
End of files
@@ -0,0 +1,8 @@
package test
trait Trait {
class object {
// Old and new constant values are different, but their hashes are the same
val CONST = "BF"
}
}
@@ -0,0 +1,8 @@
package test
trait Trait {
class object {
// Old and new constant values are different, but their hashes are the same
val CONST = "Ae"
}
}
@@ -0,0 +1,4 @@
package test
deprecated(Trait.CONST + Trait.CONST)
class Usage