Skip to content
Snippets Groups Projects
  • Philippe Suter's avatar
    198a5489
    Fixed ClassLoader issue and type errors in evaluation. · 198a5489
    Philippe Suter authored
    This fixes the classloader issue that we had, where, in codegen, a
    library class would be loaded twice and be incompatible with itself.
    
    It also fixes an oversight in evaluating expressions, where the returned
    ground term was sometimes untyped (typically: empty sets and the like).
    We now copy the type of the (unevaluated) expression in such situations.
    198a5489
    History
    Fixed ClassLoader issue and type errors in evaluation.
    Philippe Suter authored
    This fixes the classloader issue that we had, where, in codegen, a
    library class would be loaded twice and be incompatible with itself.
    
    It also fixes an oversight in evaluating expressions, where the returned
    ground term was sometimes untyped (typically: empty sets and the like).
    We now copy the type of the (unevaluated) expression in such situations.
CompilationUnit.scala 5.60 KiB