-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// This file is auto-generated, don't edit it. Thanks. | ||
package com.aliyun.main; | ||
|
||
import com.aliyun.tea.*; | ||
|
||
public class Client { | ||
|
||
public Client() throws Exception { | ||
} | ||
|
||
|
||
public Iterable<String> test1() throws Exception { | ||
} | ||
|
||
public Iterable<String> test2() throws Exception { | ||
Iterable<String> it = this.test1(); | ||
ArrayList<String> _result = new ArrayList<String>(); | ||
for (String test : it) { | ||
_result.add(test); | ||
} | ||
} | ||
|
||
public String test3(Iterable<String> iter) throws Exception { | ||
Iterable<String> it = iter; | ||
String str = ""; | ||
ArrayList<String> _result = new ArrayList<String>(); | ||
for (String i : it) { | ||
str = "" + str + ", " + i + ""; | ||
} | ||
return str; | ||
} | ||
|
||
public void test4(Object test) throws Exception { | ||
} | ||
|
||
public void test5(Iterable<String> iter) throws Exception { | ||
test3(iter); | ||
this.test4(iter); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"scope": "darabonba", | ||
"name": "main", | ||
"version": "0.0.1", | ||
"main": "./main.dara", | ||
"libraries": {}, | ||
"java": { | ||
"package": "com.aliyun.main", | ||
"className": "Client" | ||
}, | ||
"releases": { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
init(){} | ||
|
||
async function test1(): iterator[string]; | ||
async function test2(): iterator[string]{ | ||
var it:iterator[string] = test1(); | ||
for(var test : it) { | ||
yield test; | ||
} | ||
} | ||
|
||
async function test3(iter: iterator[string]): string{ | ||
var it = iter; | ||
var str : string = ''; | ||
for (var i : it) { | ||
str = `${str}, ${i}`; | ||
} | ||
return str; | ||
} | ||
|
||
async function test4(test: any): void{ | ||
} | ||
|
||
async function test5(iter: iterator[string]): void{ | ||
// test3(iter); | ||
test4(iter); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters