You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeVehicle=objectofRootObj
tire: intCar=objectofVehicleBike=objectofVehicleproctestVehicle(x: varargs[Vehicle]): string=result=""for c in x:
result.add$c.tire
var v =Vehicle(tire: 3)
var c =Car(tire: 4)
var b =Bike(tire: 2)
echotestVehicle b, c, v
if compiled, it should success, but will fail at runtime with ObjectAssignmentError
see #7712 and #7637
currently, it generate bad codegen
The text was updated successfully, but these errors were encountered:
sorry for my broken English, I should say: after#4799 fixed, this will become codegen bug.
the situation before #4799 fixed is the code cannot be compiled at all.
the slicing problem is a probability issue, best to anticipate it.
this is an offshoot from #4799
if compiled, it should success, but will fail at runtime with ObjectAssignmentError
see #7712 and #7637
currently, it generate bad codegen
The text was updated successfully, but these errors were encountered: