Commit Graph

156 Commits

Author SHA1 Message Date
Andrey Breslav 78a51bd9c4 Nullable types prohibited in supertypes 2011-09-13 19:43:41 +04:00
Andrey Breslav f8cb012097 Projections in immediate arguments to supertypes prohibited 2011-09-13 19:05:48 +04:00
Andrey Breslav bacd514919 Merge remote branch 'origin/master' 2011-09-13 17:17:52 +04:00
Andrey Breslav 910ba57f8a KT-303 Stack overflow on a cyclic class hierarchy 2011-09-13 17:17:45 +04:00
svtk 74cbb69fd0 KT-251 fixed 2011-09-13 15:38:12 +04:00
svtk 6fd7efaaba 'override' checks changed; tests added 2011-09-13 12:20:41 +04:00
svtk 4071d67c41 Added static checks for properties in traits; more tests for 'abstract' 2011-09-12 16:01:48 +04:00
Andrey Breslav 16dcbd41cb "trait" instead of "trait class"
virtual -> open
 "final" introduced
 "wraps" dropped
2011-09-09 16:16:05 +04:00
svtk c798503c81 Added 'override' checks 2011-09-09 11:51:10 +04:00
svtk 2c3076d1c2 Default 'abstract' in traits 2011-09-08 18:31:56 +04:00
Andrey Breslav 71bc41a938 KT-286 Check supertype lists (in progress)
Tests involving multiple inheritance fixed
2011-09-08 16:20:01 +04:00
svtk dd0b3c8f0e added more 'abstract' modifier checks; added 'ClassModifiers' 2011-09-08 15:14:22 +04:00
svtk d9137f18cc NPE on unfinished function declaration fixed 2011-09-07 13:22:47 +04:00
svtk 2f4377d7c0 KT-281 fixed 2011-09-07 12:23:24 +04:00
Andrey Breslav af38e0d41a KT-284 Implement static checks for traits (in progress) — test added 2011-09-07 11:47:54 +04:00
Andrey Breslav 67925fcda4 Wrong trace in call resolver fixed 2011-09-06 15:55:42 +04:00
svtk d6336d9ca5 partial support for 'abstract' modifier added 2011-09-06 14:57:42 +04:00
Andrey Breslav 3242c70c6f Infix calls and nullable receivers 2011-09-06 13:27:33 +04:00
svtk fa631503ef partial support for 'abstract' modifier added 2011-09-06 13:25:56 +04:00
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