access modifiers support

This commit is contained in:
Sergey Ignatov
2011-11-03 14:04:33 +04:00
parent bbd282e57b
commit b727c18852
8 changed files with 62 additions and 18 deletions
@@ -62,4 +62,20 @@ public class FunctionTest extends JetTestCaseBase {
"fun putUVW<U, V, W>(u : U?, v : V?, w : W?) : Unit { }"
);
}
public void testInternal() throws Exception {
Assert.assertEquals(methodToSingleLineKotlin("void test() {}"), "fun test() : Unit { }");
}
public void testPrivate() throws Exception {
Assert.assertEquals(methodToSingleLineKotlin("private void test() {}"), "private fun test() : Unit { }");
}
public void testProtected() throws Exception {
Assert.assertEquals(methodToSingleLineKotlin("protected void test() {}"), "protected fun test() : Unit { }");
}
public void testPublic() throws Exception {
Assert.assertEquals(methodToSingleLineKotlin("public void test() {}"), "public fun test() : Unit { }");
}
}