A new cannel called printBoolean causes an internal error
This seems to be the smallest program that causes the error
def printBoolean e: end = printInteger!5 new e _: end printBoolean!e
Run the code and you'll get the error below
java.lang.UnsupportedOperationException: Internal error. This should not happen. The interpreter tried to print a variable. Please contact the development team. <terminated>
My intuition is that the problem has to do with the fact that the compiler is accepting a new channel with the name of a primitive channel. I was not expecting the program to compile. In fact I thought type checking would start with the six (I believe) primitive channels on the symbol table, so that the re-declaration of printBoolean would result in a standard error:
duplicate variable printBoolean