view tests/code/basic_types_1.d @ 52:6decab6f45c4 new_gen

Two new tests that uncovered a bug - we dont to type conversion when calling functions
author Anders Halager <halager@gmail.com>
date Sat, 26 Apr 2008 16:12:36 +0200
parents
children
line wrap: on
line source

int main()
{
    // test some basic type conversions
    byte a = 2;
    short b = 3 * a;
    int c = b + a;
    long d = c * a / b;
}