view tangotests/t.d @ 139:0ab29b838084 trunk

[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :) Fixed: tango.io.Console seems to be working now.
author lindquist
date Tue, 22 Jan 2008 00:01:16 +0100
parents aeddd4d533b3
children 336ec4f4bbb3
line wrap: on
line source

interface MyInterface
{
    void func();
}

abstract class MyBaseClass : MyInterface
{
    abstract void func();
}

class MyClass : MyBaseClass
{
    void func()
    {
    }

    MyBaseClass toBase()
    {
        return this;
    }
}

void main()
{
    printf("STARTING\n");
    auto c = new MyClass;
    printf("c = %p\n", c);
    auto b = c.toBase;
    printf("b = %p\n", b);
    printf("FINISHED\n");
}

extern(C) int printf(char*, ...);