Move vector literals 2 and 3, and add 4-9 + 12 into vector_literals
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import io:*;
|
||||
import mem:*;
|
||||
import vector:*;
|
||||
import vector_literals:*
|
||||
|
||||
obj AbleToBeDestroyed (Object) {
|
||||
var data:int
|
||||
@@ -65,6 +66,9 @@ fun main(): int {
|
||||
print(newType.at(i));
|
||||
println();
|
||||
|
||||
vector(1,2,3,4,5,6,7,8,9,10,11,12).for_each(fun(i:int) { print(i); })
|
||||
println()
|
||||
|
||||
var desVec: vector<AbleToBeDestroyed>* = new<vector<AbleToBeDestroyed>>()->construct();
|
||||
var testDestruct.construct(0): AbleToBeDestroyed;
|
||||
desVec->addEnd(testDestruct);
|
||||
|
||||
Reference in New Issue
Block a user