diff --git a/examples/.idea/modules.xml b/examples/.idea/modules.xml
index 4b3b58ae48d..cf95d722bf2 100644
--- a/examples/.idea/modules.xml
+++ b/examples/.idea/modules.xml
@@ -3,6 +3,7 @@
+
diff --git a/examples/src/collections/IIterator.jetl b/examples/src/collections/IIterator.jetl
index 31469b269b3..2ec8bc66cae 100644
--- a/examples/src/collections/IIterator.jetl
+++ b/examples/src/collections/IIterator.jetl
@@ -2,16 +2,16 @@ interface class IIterator {
fun next() : T
val hasNext : Boolean
- fun toArray(buffer : WriteOnlyArray) : Int { // T is still an in-parameter
+ fun toArray(buffer : MutableArray) : Int { // T is still an in-parameter
return fillBuffer(buffer, 0, buffer.size)
}
- fun toArray(buffer : WriteOnlyArray, from : Int, length : Int) : Int { // T is still an in-parameter
+ fun toArray(buffer : MutableArray, from : Int, length : Int) : Int { // T is still an in-parameter
if (from < 0 || from > buffer.lastIndex || length < 0 || length > buffer.size - from) {
throw IndexOutOfBoundsException();
}
- if (len == 0) return 0;
+ if (len == 0) return 0
var count = 0;
for (i in [from .. from + length - 1]) {
diff --git a/grammar/grammar.iml b/grammar/grammar.iml
new file mode 100644
index 00000000000..d5c07432750
--- /dev/null
+++ b/grammar/grammar.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/grammar/src/class.grm b/grammar/src/class.grm
new file mode 100644
index 00000000000..cde2a46c394
--- /dev/null
+++ b/grammar/src/class.grm
@@ -0,0 +1,50 @@
+/*
+
+internal class Example>(protected val x : Foo, y : Some)
+ : Bar(x), Foo by x, IAbstractSome by y.asAbstract()
+ where
+ T : Function