Commit Graph

1688 Commits

Author SHA1 Message Date
Andrey Breslav b6a07c1e29 Merge remote branch 'origin/master' 2011-11-14 17:34:38 +03:00
Andrey Breslav 77e0ce726d readLine() implemented via redirection 2011-11-14 17:34:30 +03:00
Andrey Breslav 9ec55e08f4 Collective slices fixed 2011-11-14 16:25:37 +03:00
Alex Tkachman 6982ce454e KT-503 test. Never use asm.Type.getElementType() 2011-11-14 06:17:11 +02:00
Alex Tkachman 3904b91e4c backend refactoring from extension properties and proper naming scheme of inner classes and objects 2011-11-13 21:08:35 +02:00
Andrey Breslav 1927eeef2c One more puzzler 2011-11-13 19:10:55 +04:00
Andrey Breslav 703963621e More puzzlers 2011-11-13 19:06:00 +04:00
Alex Tkachman d494463352 comment failing test 2011-11-12 21:59:51 +02:00
Alex Tkachman a3ac4506af failing test for kt-475 2011-11-12 20:51:43 +02:00
Andrey Breslav a322154477 JetConstructor renamed to avoid confusion 2011-11-12 22:18:55 +04:00
Stepan Koltsov 537a9ba804 fix JetOverloadTest broken in e97b91c6e4 2011-11-12 21:38:27 +04:00
Stepan Koltsov e97b91c6e4 report overload conflict of constructor and function
like this:

===
fun a() = 1

class a()
===
2011-11-12 21:24:11 +04:00
Alex Tkachman ffa2e8f87c Merge remote branch 'origin/master' 2011-11-12 19:13:51 +02:00
Alex Tkachman 396376c013 fix for broken test. (this, receiver) handling normalized 2011-11-12 19:13:26 +02:00
Andrey Breslav 2070c2201e Fixing example code 2011-11-12 20:31:06 +04:00
Andrey Breslav c74a0a62cc KT-313 Bug in substitutions in a function returning its type parameter T 2011-11-12 20:29:38 +04:00
Andrey Breslav 8d8145c3d2 Better reporting in tests 2011-11-12 20:25:38 +04:00
Andrey Breslav 3fcb75ba1d Merge remote-tracking branch 'origin/master' 2011-11-12 18:56:10 +04:00
Andrey Breslav 7f50031151 Delete useless files 2011-11-12 18:55:56 +04:00
Stepan Koltsov 7975a8e0c3 narrow return type of ClassDescriptor.getConstructors
ClassDescriptor.getConstructors should return
Set<ConstructorDesctiptor> instead of Set<FunctionDescriptor>
2011-11-12 18:55:16 +04:00
Andrey Breslav 30926012c7 Support unicode escapes in chars and strings 2011-11-12 18:54:03 +04:00
Andrey Breslav ff62489233 No arithmetic for Chars (except for '-') 2011-11-12 18:37:26 +04:00
Andrey Breslav 89fa7cd29a More Kotlin vs Java puzzlers 2011-11-12 18:37:06 +04:00
Andrey Breslav 3f6838be36 A quick and dirty fix for error reporting when no function is applicable 2011-11-12 18:25:35 +04:00
Andrey Breslav bf4fef9a03 A non-generic function is always more speciic than a generic function
Example:
fun <T> array(vararg array : T) = array
fun array(vararg array : Char) = array

fun test() {
    array('1', '2') // ambiguity
}
2011-11-12 18:20:16 +04:00
Andrey Breslav 5bb226627f Internal compiler errors are reported as warnings, and individually namespace-by-namespace. To make it easier to work even in the presence of some bug-triggering code in the current project 2011-11-12 18:13:11 +04:00
Stepan Koltsov 3193b7d2c4 fix incorrect overload error on regular function and extension function with same name
===
fun ff() = 1

fun Int.ff() = 1
===
2011-11-12 16:54:33 +04:00
Stepan Koltsov 50c7364f6b fix unnecessary wrong overload in test 2011-11-12 16:54:27 +04:00
Stepan Koltsov 594ab01b1f fix incorrect overload error in different namespaces with same suffix
===
namespace a {
    fun f() = 1
}

namespace b {
    namespace a {
        fun f() = 1
    }
}
===
2011-11-12 16:05:16 +04:00
Maxim Shafirov f18510652e opt out Java -> Kotlin resolve due to unsolved SOE problems 2011-11-11 22:03:01 +04:00
Maxim Shafirov c5daa97cef stack overflow 2011-11-11 21:35:24 +04:00
Maxim Shafirov 68e013a752 unlucky merge, sorry 2011-11-11 21:06:29 +04:00
Andrey Breslav 30d90371dc Fixing Java puzzlers 2011-11-11 20:57:53 +03:00
Maxim Shafirov 66c1f56892 merge commit 2011-11-11 20:14:29 +04:00
Maxim Shafirov 627a1dbf6f Resolve Kotlin from Java, first drop. 2011-11-11 20:02:36 +04:00
Andrey Breslav aa02dcd0e7 Merge remote branch 'origin/master' 2011-11-11 15:54:16 +03:00
Andrey Breslav 421d27e448 PROPERTY_ACCESSOR included into DECLARATIONS_TO_DESCRIPTORS 2011-11-11 15:54:05 +03:00
svtk 3bfd7955a0 KT-352 Function variable declaration type isn't checked inside a function body 2011-11-11 01:00:40 +04:00
Andrey Breslav 4a87566fa2 KT-442 Type inference fails on with() 2011-11-10 23:19:10 +03:00
svtk 2c0ac86973 Merge remote-tracking branch 'origin/master' 2011-11-10 22:13:57 +04:00
Andrey Breslav e001c6e306 Unified processing in TopDownAnalyzer to avoid inconsistencies 2011-11-10 21:52:14 +03:00
Andrey Breslav 4224e00cbd Most of the tests fixed 2011-11-10 21:33:46 +03:00
svtk 25d26fe6fd KT-235 Illegal assignment return type 2011-11-10 22:13:52 +04:00
Andrey Breslav 586f4c34b2 Merge remote branch 'origin/master' 2011-11-10 20:55:18 +03:00
Andrey Breslav 839d986f44 KT-385 type inference does not work properly
KT-109 Good code is red: type arguments are not inferred
KT-441 Exception in type inference when multiple overloads accepting an integer literal are accessible
2011-11-10 20:55:12 +03:00
Andrey Breslav 1e3f2889a4 KT-336 Can't infer type parameter for ArrayList in a generic function (Exception in type inference)
KT-335 Type inference fails on Collections.sort
2011-11-10 19:44:59 +03:00
Stepan Koltsov a4b62868fa KT-424 also check overloads in namespaces 2011-11-10 20:00:34 +04:00
Stepan Koltsov 31b049893f fix wrong test (unnecessary overload) 2011-11-10 20:00:26 +04:00
Stepan Koltsov d155de2bdc better diagnostics for KT-424
highlight full function definition, not only function name
2011-11-10 20:00:19 +04:00
Stepan Koltsov 5218246d80 KT-424: Check declarations for overload-compatibility
===
fun a() {}
fun a() {}
===

must be an error.
2011-11-10 20:00:15 +04:00