parent
e6199aaa9b
commit
f1da7c3ba6
|
@ -224,7 +224,9 @@ private:
|
||||||
else if (currentIs(tok!"return"))
|
else if (currentIs(tok!"return"))
|
||||||
{
|
{
|
||||||
writeToken();
|
writeToken();
|
||||||
if (!currentIs(tok!";") && !currentIs(tok!")") && !currentIs(tok!"{"))
|
if (!currentIs(tok!";") && !currentIs(tok!")") && !currentIs(tok!"{")
|
||||||
|
&& !currentIs(tok!"in") && !currentIs(tok!"out") && !currentIs(tok!"do")
|
||||||
|
&& (hasCurrent && tokens[index].text != "body"))
|
||||||
write(" ");
|
write(" ");
|
||||||
}
|
}
|
||||||
else if (currentIs(tok!"with"))
|
else if (currentIs(tok!"with"))
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
public int f() return
|
||||||
|
in (true)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int g() return
|
||||||
|
out (; true)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int h() return
|
||||||
|
body
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
public int f() return
|
||||||
|
in (true)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int g() return
|
||||||
|
out (; true)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int h() return
|
||||||
|
body
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
public int f() return
|
||||||
|
in (true) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int g() return
|
||||||
|
out (; true) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int h() return
|
||||||
|
body {
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue