When I write the following code, I'll get the compiler error XS7038: Failed to emit module 'XsCsInteropTests': Unable to determine specific cause of the failure.
var aArray := array of int {5} { 1, 2, 3, 4, 5 }
var aLen := ALen(Aarray)
if aLen == 0
endif
The error is caused by the invalid variable name aLen, which is also a function name. But it was tricky to identify the location of the error, because the error message is very generic and the line number doesn't indicate the cause of the error.