I get an internal compiler error (Impossible: LambdaStatSem.APP.argument type not arrow) when compiling the current MLton sources (which recently added preliminary support for building with MLKit) with MLKit 4.6.0 (and also some other previous versions that I tried):
$ git clone https://github.com/MLton/mlton.git
$ cd mlton/mlton
$ make mlkit-mlton
...
[reading source file: ../lib/mlton/basic/random.sig]
[reading source file: ../lib/mlton/basic/random.sml]
Impossible: LambdaStatSem.APP.argument type not arrow
rand a
...
I attach the full error message (make.mlkit-mlton.log). I didn't have much luck minimizing the random.sml file and its dependencies to produce a smaller example. In particular, the ICE didn't occur when I eliminated the use of the Trace.trace{,0} functions in random.sml.
I get an internal compiler error (
Impossible: LambdaStatSem.APP.argument type not arrow) when compiling the current MLton sources (which recently added preliminary support for building with MLKit) with MLKit 4.6.0 (and also some other previous versions that I tried):I attach the full error message (make.mlkit-mlton.log). I didn't have much luck minimizing the
random.smlfile and its dependencies to produce a smaller example. In particular, the ICE didn't occur when I eliminated the use of theTrace.trace{,0}functions inrandom.sml.