ScriptName now returns FqName, fully qualified with package name. Update usages and convert to internal format as needed.
This commit is contained in:
committed by
Andrey Breslav
parent
d08f2bc7ab
commit
9239fa2ece
@@ -49,6 +49,13 @@ public class ScriptTest {
|
||||
aClass.getConstructor(int.class).newInstance(4);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testScriptWithPackage() throws Exception {
|
||||
Class<?> aClass = compileScript("fib.pkg.ktscript", numIntParam(), Collections.<JetScriptDefinition>emptyList());
|
||||
Assert.assertNotNull(aClass);
|
||||
aClass.getConstructor(int.class).newInstance(4);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testScriptStandardExt() throws Exception {
|
||||
Class<?> aClass = compileScript("fib.kt", numIntParam(), Collections.<JetScriptDefinition>emptyList());
|
||||
|
||||
Reference in New Issue
Block a user