From b6aff9e9eed4deda3c66ce22778869d7abdc0637 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Mon, 23 Jun 2014 21:38:28 +0400 Subject: [PATCH] Java to Kotlin converter: added test data file back --- j2k/tests/testData/ast/comments/comments.kt | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 j2k/tests/testData/ast/comments/comments.kt diff --git a/j2k/tests/testData/ast/comments/comments.kt b/j2k/tests/testData/ast/comments/comments.kt new file mode 100644 index 00000000000..8fbef48f875 --- /dev/null +++ b/j2k/tests/testData/ast/comments/comments.kt @@ -0,0 +1,30 @@ +package foo + +// we use package 'foo' + +// imports: +import java.util.ArrayList + +// we need ArrayList + +// let's declare a class: +class A /* just a sample name*/() : Runnable /* let's implement Runnable */ { + fun foo/* again a sample name */(p: Int /* parameter p */, c: Char /* parameter c */) { + // let's print something: + System.out.println("1") // print 1 + System.out.println("2") // print 2 + + System.out.println("3") // print 3 + + // end of printing + + if (p > 0) { + // do this only when p > 0 + // we print 4 and return + System.out.println("3") + return // do not continue + } + + // some code to be added + } +} // end of class A \ No newline at end of file