view tests/code/func_1.d @ 89:a49bb982a7b0 new_gen

Using the new SourceLocation system to handle errors. Also, this is the first push for making the errors don't throw, but continue to check the source.
author Anders Johnsen <skabet@gmail.com>
date Sun, 04 May 2008 20:27:01 +0200
parents 688b516408cd
children
line wrap: on
line source



int main()
{
    testStruct t;
    t.x = 5;

    return t.x;
}

testStruct m(testStruct t)
{
    t.x = t.x - 5;
    return t;
}

struct testStruct
{
    int x;
}