test/libponyc/traits.cc
// Multiple inheritance without a local definition
Multiple inheritance without a local definition
Multiple inheritance without a local definition
TEST_F(TraitsTest, MultiInheritNoLocal)
{
  const char* src =
    "trait A\n"
    "trait B\n"
    "trait T1\n"
    "  fun f(x: A, y: U32 = 1): B\n"
    "trait T2\n"
    "  fun f(x: A, y: U32 = 1): B\n"
    "trait T3 is (T1 & T2)";
  const char* expect =
    "trait A\n"
    "trait B\n"
    "trait T1\n"
    "  fun f(x: A, y: U32 = 1): B\n"
    "trait T2\n"
    "  fun f(x: A, y: U32 = 1): B\n"
    "trait T3 is (T1 & T2)\n"
    "  fun f(x: A, y: U32 = 1): B";
    TEST_EQUIV(src, expect);
}
TEST_F ( TraitsTest , MultiInheritNoLocal ) { const char * src = " \n " " \n " " \n " " \n " " \n " " \n " " " ; const char * expect = " \n " " \n " " \n " " \n " " \n " " \n " " \n " " " ; TEST_EQUIV ( src , expect ) ; }
Multiple inheritance without a local definition
Multiple inheritance without a local definition