Commit Graph

115 Commits

Author SHA1 Message Date
svtk 671b8913ed frontend bugs fixed:
fun f(): Int = "s" //was ok
  fun g(): Int { if (1 < 2) {} else {} }//was ok
  fun h(): Int { val a = 1 } //was ok
2011-08-05 17:43:32 +04:00
Andrey Breslav 117cead179 JET-183 Typechecker fails with enum constants
+
Tests for annotations
2011-07-14 19:04:07 +04:00
Andrey Breslav 42397c887a JET-183 Typechecker fails with enum constants 2011-07-13 18:01:51 +04:00
Andrey Breslav ee61fa7e10 JET-142 Support string templates:
Make '$' in short entries a separate token
2011-07-12 13:37:18 +04:00
Andrey Breslav 591740717a JET-142 Support string templates 2011-07-11 23:02:18 +04:00
Andrey Breslav c2435f0f24 JET-126 Put 'where'-clause after the declaration 2011-07-08 22:44:56 +04:00
Andrey Breslav d1b8a6b5c7 Multiple conditions in when entries 2011-07-06 19:36:09 +04:00
Andrey Breslav e0d597a1bc JET-140 Change function type syntax
and tests for
JET-168 Improve the parser for function and tuple types as receiver types
2011-07-06 18:18:11 +04:00
Andrey Breslav 0c5eca16d5 if (a != null) return a // nullability info considered 2011-07-05 16:08:25 +04:00
Andrey Breslav 4121aed773 !is supported in data flow info for ifs 2011-07-05 10:55:33 +04:00
Andrey Breslav a35e67d043 JET-124 Sometimes local variables are not resolved in the callee position 2011-06-27 14:43:31 +04:00
Andrey Breslav 3342515892 JET-121 Extension closure scope, empty? 2011-06-23 20:30:21 +04:00
Andrey Breslav 760b643df9 SimplesClosure test fixed. 2011-06-20 16:18:49 +04:00
Andrey Breslav 6d1823ac2a JET-113 Check returns in secondary constructors 2011-06-17 18:31:51 +04:00
Andrey Breslav 03460e2bcc Returns forbidden outside functions 2011-06-17 18:20:24 +04:00
Andrey Breslav 94f00509e2 JET-34 Require a return statement in a function with a block body
JET-77 Require a return type annotation for non-Unit returning functions with block bodies
2011-06-17 18:03:30 +04:00
Andrey Breslav 5968740638 'this()' resolution fixed for generic classes 2011-06-16 20:06:57 +04:00
Andrey Breslav 8786c6a667 Type annotations required on functions 2011-06-15 21:21:33 +04:00
Andrey Breslav c2fbbff782 JET-50 Drop the 'new' keyword 2011-06-15 18:00:22 +04:00
Andrey Breslav 41d2c73c06 No propagation of names bound in patterns to else-branches 2011-06-15 14:38:19 +04:00
Andrey Breslav e3dda48d09 Test for JET-94 Support enum classes 2011-06-14 22:08:58 +04:00
Andrey Breslav e4e5c7b0dc JET-94 Support enum classes 2011-06-14 22:06:56 +04:00
Andrey Breslav 400e939c21 Bindings are propagated over control flow, only directly, otherwise it is confusing 2011-06-14 18:48:27 +04:00
Andrey Breslav 79d3f318b9 Bindings are propagated over control flow, scope intersections are not supported yet 2011-06-13 16:12:32 +04:00
Andrey Breslav 3cacb512a3 Working on bindings in ifs 2011-06-13 14:33:32 +04:00
Andrey Breslav c2aceefe76 Working on bindings 2011-06-12 21:54:35 +04:00
Andrey Breslav d4b1658bde Autocasts & binding patterns in 'when'-expressions 2011-06-12 21:30:22 +04:00
Andrey Breslav 7536501607 LIFO order for autocasts 2011-06-12 18:38:05 +04:00
Andrey Breslav d64b5b3a74 Autocasts implemented 2011-06-12 18:21:35 +04:00
Andrey Breslav 11c0d924a6 One more case for nullability: comparison to a non-null expression 2011-06-12 15:32:50 +04:00
Andrey Breslav c3854c939c Negations supported 2011-06-10 19:21:39 +04:00
Andrey Breslav 49b60c3af8 More cases for nullability analysis 2011-06-10 19:07:23 +04:00
Andrey Breslav 9d3abf782c Nullability analysis supported for a little more simple cases 2011-06-10 17:21:28 +04:00
Andrey Breslav 41322a8658 Nullability analysis supported for simple cases 2011-06-10 17:06:35 +04:00
Andrey Breslav 8cffea6bc2 JET-84 Support generic parameter constraints for class objects
JET-89 Report a warning is the only upper bound is final
JET-87 Support where-clause for generic parameter constraints
2011-06-05 11:41:08 +04:00
Andrey Breslav 9450e1bdf9 JET-84 Support generic parameter constraints for class objects
Test for classes + small fixes
2011-06-05 01:25:03 +04:00
Andrey Breslav a32c7a4d87 A test for JET-53 Support import of individual classes from Java packages 2011-06-04 18:35:30 +04:00
Andrey Breslav cc54631209 JET-86: Report errors for class objects 2011-06-04 15:32:45 +04:00
Andrey Breslav 2350a8a731 JET-81 Assertion fails when processing in self-referring anonymous objects 2011-06-03 17:11:27 +04:00
Andrey Breslav 2446179949 JET-79 Don't allow objects, classes, properties or namespaces with the same name 2011-06-03 16:52:12 +04:00
Andrey Breslav f0b8ef6946 Support for local objects 2011-06-03 16:02:26 +04:00
Andrey Breslav 36470388c4 Tests for objects + delegation specifier resolution + override bindings for objects 2011-06-03 15:09:47 +04:00
Andrey Breslav 7a8ea7fd88 JET-65 Identifier in initializer block resolves to constructor parameter instead of property
+
Scopes for secondary constructors fixed
2011-06-02 13:35:45 +04:00
Andrey Breslav 97de457f79 JET-72 Type inference doesn't work when iterating over ArrayList:
substitutions fixed for methods inherited from generic superclasses
2011-06-01 18:17:28 +04:00
Andrey Breslav dc25c7bb3b Test for JET-68 + regression tests turned on 2011-06-01 15:25:11 +04:00
Andrey Breslav c1dc1ebdac JET-69 Lookup equals() in a non-null type of the receiver. 2011-05-30 20:12:31 +04:00
Andrey Breslav 6319ada926 Nullablility diagnostics for extension functions 2011-05-30 20:09:04 +04:00
Andrey Breslav 9a9c78da9e JET-67 Property with abstract getter forces class to have primary constructor 2011-05-30 16:22:30 +04:00
Andrey Breslav a676c960cf 'this' is resolved to the corresponding declaration in labeled function literals 2011-05-30 16:02:51 +04:00
Andrey Breslav e4df21c150 Name imports fixed 2011-05-27 14:30:49 +04:00