Commit Graph

21 Commits

Author SHA1 Message Date
Alexander Udalov 9c00e1c94d Scripts: coerce result to the actual expression type
#KT-5622 Fixed
2014-08-13 17:19:53 +04:00
Alexander Udalov 844845c6e3 REPL: sanitize stack traces
Don't include our compiler's and preloader's internal code, reflection, native
methods etc. Also delete "substring" matching logic from tests
2014-08-13 15:42:10 +04:00
Alexander Udalov 6eb5567895 REPL: fix open parenthesis not triggering "incomplete"
Check if all of the syntax errors are at EOF, not that there's a single one.
In case of open parenthesis two syntax errors are reported for some reason
2014-08-13 15:13:25 +04:00
Alexander Udalov 4213ce318e REPL: don't fail on a callable reference
There should probably be a special kind of property, but at least it won't
throw an exception for now
2014-08-13 15:13:24 +04:00
Alexander Udalov 415fe7a5e6 Initial support for classes in scripts and REPL 2014-08-13 15:13:22 +04:00
Alexander Udalov c873806b54 Refactor "incomplete line" handling in REPL tests 2014-08-13 15:13:21 +04:00
Alexander Udalov c6dfa866cd Refactor REPL tests: use empty line instead of "null" 2014-08-13 15:13:19 +04:00
Alexander Udalov a79398fa00 Don't load Object as a supertype for Java classes
#KT-4890 In Progress
 #KT-5002 Fixed
2014-07-25 21:19:37 +04:00
Ilya Ryzhenkov 98c54f39bb Unify script file extensions to "kts" so that IDEA, compiler and tests agree when to parse as SCRIPT.
Include kt* files into formatter test generation, to test scripting formatting
2014-03-24 18:17:50 +04:00
Alexander Udalov f7b6457139 Replace "jet" package name with "kotlin" in testData 2014-03-02 19:55:26 +04:00
Michał Sapalski 7deec28b9c Adjusted tests to the new DescriptorRenderer behaviour 2013-04-29 15:44:07 +04:00
Stepan Koltsov cd1211fcb3 repl: multiline 2012-06-28 19:38:44 +04:00
Stepan Koltsov 85737609b2 missing file 2012-06-14 18:49:31 +04:00
Stepan Koltsov 1c306eefd8 test for repl evaluation exception 2012-06-14 18:30:49 +04:00
Stepan Koltsov 970c2ae1f9 do not exit repl if something went wrong 2012-06-14 18:30:49 +04:00
Stepan Koltsov 1d0ef01eea REPL overload resolution ambiguity
Fix overload resolution ambiguity in REPL. Note, resolution for
functions declared in script is very different from regular programs:
in scripts function declared later wins. See
functionOverloadResolutionAnyBeatsString for example.

#KT-2272 Fixed
2012-06-14 14:06:17 +04:00
Stepan Koltsov 55ffd797a4 test imports work in the following lines of REPL 2012-06-13 22:32:36 +04:00
Stepan Koltsov b0553ff651 properly handle empty lines in REPL 2012-06-09 23:25:41 +04:00
Stepan Koltsov f11767319a repl: fix two anonymous functions 2012-06-09 23:25:40 +04:00
Stepan Koltsov 6946abbcea working on REPL: implemented previous lines importing 2012-06-08 04:19:24 +04:00
Stepan Koltsov bace845b49 working on REPL: test template and basic analyzer hacks 2012-06-06 23:58:21 +04:00