Svetlana Isakova
9d366cb896
Prohibit local objects and enum classes
...
#KT-5402 Fixed
#KT-4838 Fixed
Resolve type of object inside local object as special, not supertype('Any').
Changed visibility of constructor of anonymous object to 'internal' to be able to resolve the following:
fun box(): String {
var foo = object {
val bar = object {
val baz = "ok"
}
}
return foo.bar.baz
}
The containing declaration of property initializers is constructor, so 'baz' was invisible inside private constructor.
2014-09-01 12:32:52 +04:00
Svetlana Isakova
eaeed78154
Resolve type of anonymous object in local object as local
2014-09-01 12:32:51 +04:00
Svetlana Isakova
7f33ad90a6
Report 'nested class accessed via instance reference' error
2014-09-01 12:32:50 +04:00
Svetlana Isakova
8c13a76805
KT-5527 Double TYPE_MISMATCH diagnostic when returns object
...
#KT-5527 Fixed
2014-07-25 21:17:31 +04:00
Svetlana Isakova
531d337486
changed default positioning strategy:
...
added special handling for JetObjectLiteralExpression
2013-12-27 16:02:15 +04:00
Alexander Udalov
310a70bf84
Report a separate diagnostic on inheritance from singletons
2013-12-02 19:56:16 +04:00
Alexander Udalov
29f3c4a1a0
Report upper bounds violation for objects, not only classes
2013-11-14 19:11:18 +04:00
Andrey Breslav
3e8031acbd
Properly load objects nested into class objects from Java
2013-06-10 15:33:10 +04:00
Svetlana Isakova
d0a6f6252d
fixed: DEBUG_INFO_ERROR_ELEMENT should be visible in tests
2012-11-20 19:53:03 +04:00
Andrey Breslav
3d8d92c7d3
JetDiagnosticsTest migrated to TestGenerator
...
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00
Svetlana Isakova
74f4fde180
KT-2240 Wrong overload resolution ambiguity when object literal is involved
...
#KT-2240 fixed
2012-06-09 17:40:22 +04:00
Stepan Koltsov
3748507ac1
disable +JDK macro in JetDiagnosticsTest and fix (actually hide) revealed bugs
...
+JDK was not very helpful
2012-03-12 22:54:24 +04:00
Stepan Koltsov
07ff53d456
add trailing newlines to test files
...
otherwise I have to rollback dozens of files after using sed that follows conventions
2012-03-12 22:54:14 +04:00
Stepan Koltsov
8be79b3f22
split some tests in JetDiagnosticsTest
2012-03-12 22:53:50 +04:00