Skip to content

CompilerError XS7038: Failed to emit module ...: Unable to determine specific cause of the failure. #736

@VolkmarR

Description

@VolkmarR

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions