Opened 3 years ago

Last modified 3 years ago

#268 new defect

Downcasting against type parameter failed — at Version 1

Reported by: f37yu Owned by:
Priority: major Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description (last modified by f37yu)

Minimal reproduction:

forall (T) struct wrap {
    T elem;
};

forall (T) void foo (wrap(T) x, T y) {
}



int main() {
    wrap(int) w{10};
    foo (w, 2.0); // error?
}

Change History (1)

comment:1 by f37yu, 3 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.