Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Removed workarounds for resolved bug 2986 #525

Merged
merged 1 commit into from

2 participants

@denis-sh

No description provided.

@9rnsr 9rnsr merged commit da44d0b into D-Programming-Language:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 7, 2012
  1. @denis-sh
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 5 deletions.
  1. +3 −5 std/traits.d
View
8 std/traits.d
@@ -2030,7 +2030,6 @@ template InterfacesTuple(T)
unittest
{
- struct Test1_WorkaroundForBug2986
{
// doc example
interface I1 {}
@@ -2041,7 +2040,6 @@ unittest
alias InterfacesTuple!(C) TL;
static assert(is(TL[0] == I1) && is(TL[1] == I2));
}
- struct Test2_WorkaroundForBug2986
{
interface Iaa {}
interface Iab {}
@@ -2051,11 +2049,11 @@ unittest
interface Ib : Iba, Ibb {}
interface I : Ia, Ib {}
interface J {}
- class B : J {}
- class C : B, Ia, Ib {}
+ class B2 : J {}
+ class C2 : B2, Ia, Ib {}
static assert(is(InterfacesTuple!(I) ==
TypeTuple!(Ia, Iaa, Iab, Ib, Iba, Ibb)));
- static assert(is(InterfacesTuple!(C) ==
+ static assert(is(InterfacesTuple!(C2) ==
TypeTuple!(J, Ia, Iaa, Iab, Ib, Iba, Ibb)));
}
}
Something went wrong with that request. Please try again.