Fix #154
This commit is contained in:
parent
98686f7dd1
commit
c194335be9
|
@ -709,7 +709,8 @@ private:
|
|||
write(" ");
|
||||
break;
|
||||
case tok!"is":
|
||||
if (!peekBackIsOneOf(false, tok!"!", tok!"(", tok!",", tok!"}", tok!"=") && !peekBackIsKeyword())
|
||||
if (!peekBackIsOneOf(false, tok!"!", tok!"(", tok!",", tok!"}", tok!"=",
|
||||
tok!"&&", tok!"||") && !peekBackIsKeyword())
|
||||
write(" ");
|
||||
writeToken();
|
||||
if (!currentIs(tok!"(") && !currentIs(tok!"{"))
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
class Foo(T) if (is(T : Bar) && is(T : Baz))
|
||||
{
|
||||
}
|
||||
|
||||
class Foo(T) if (is(T : Bar) || is(T : Baz))
|
||||
{
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
class Foo(T) if (is(T : Bar) && is(T : Baz))
|
||||
{}
|
||||
|
||||
class Foo(T) if (is(T : Bar) || is(T : Baz))
|
||||
{}
|
|
@ -0,0 +1,5 @@
|
|||
class Foo(T) if (is(T : Bar) && is(T : Baz)) {
|
||||
}
|
||||
|
||||
class Foo(T) if (is(T : Bar) || is(T : Baz)) {
|
||||
}
|
Loading…
Reference in New Issue