Commit Graph

137 Commits

Author SHA1 Message Date
Andrey Breslav c1dbe9eee2 Specificity by receiver fixed. Test updated 2011-09-06 13:16:05 +04:00
Andrey Breslav c02c507114 Definite returns extracted as a separate issue KT-281 2011-09-06 12:52:53 +04:00
Andrey Breslav abfbe52a5a Better error recovery 2011-09-05 20:41:52 +04:00
Andrey Breslav 8801cf37fe Setter diagnostics fixed 2011-09-05 20:22:32 +04:00
Andrey Breslav ecd63c5f73 this references excluded from debug annotations 2011-09-05 20:05:50 +04:00
Andrey Breslav 2e45307082 Two tests fixed 2011-09-05 19:58:59 +04:00
Andrey Breslav 9223875977 Overrides do not collide in resolution any more 2011-09-05 19:08:07 +04:00
Andrey Breslav 324922506c Little corrections 2011-09-02 17:33:37 +04:00
Andrey Breslav 6954977350 Merge remote branch 'origin/master'
Conflicts:
	idea/src/org/jetbrains/jet/lang/resolve/BindingContext.java
	idea/src/org/jetbrains/jet/lang/types/JetTypeInferrer.java
2011-09-02 13:26:38 +04:00
Andrey Breslav ec31f991c0 1 as Byte typechecks fine 2011-08-31 22:02:05 +04:00
svtk bda26a18ff little fixes 2011-08-31 14:49:42 +04:00
svtk 6bbcc281ce tests for variance added; little fixes 2011-08-31 14:43:23 +04:00
Andrey Breslav 2a67c4a591 Test data fixed
Useless code removed
Some naming refactored
2011-08-30 20:20:43 +04:00
Andrey Breslav 829910f2c2 Ambiguities not reported when some types were not obtained (i.e. there are errors in the argument list) 2011-08-29 15:26:34 +04:00
Andrey Breslav d38fbbe2c6 Array access as LValue resolution fixed 2011-08-26 21:40:37 +04:00
Andrey Breslav 86e8142e3c Working on type inference for function literals 2011-08-26 17:51:15 +04:00
svtk 847c727ad0 bug with automatically casting mutable variables (KT-228) fixed 2011-08-23 11:44:56 +04:00
svtk 3f4f0c8737 bug with incorrect merge of data flow info (KT-104) fixed 2011-08-22 19:12:22 +04:00
svtk 9ebffafd89 added expected type for assignment and elvis operator
changed return type for safe operator (now it works as a?.b is Nullable type, constructions like a?.b.c need another parsing)
2011-08-17 12:21:26 +04:00
svtk 57db9b076a added visitor with type parameters (TypeInferrerVisitor now implements it);
added expected type (pass it down the psi tree);
added information about is-checks to type enrichment
2011-08-16 15:52:56 +04:00
svtk ad5e3abbb4 Merge branch 'master' of ssh://git.labs.intellij.net/jet 2011-08-05 17:51:24 +04:00
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 4c8aec3b1b Compile-time constants 2011-08-03 14:05:07 +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