stainless icon indicating copy to clipboard operation
stainless copied to clipboard

Type synonyms nested inside types do not always work

Open vkuncak opened this issue 4 years ago • 0 comments

This crashes with mismatch between List[(Int,Char)] and List[(Int,T)]:

import stainless.collection._
object Test {
    type T = Char
    case class C(u: List[(Int,T)]) 
}

Having a list of pairs as opposed to List[T] seems necessary to trigger the problem.

Maybe tuples are not entirely traversed when expanding type synonyms?

vkuncak avatar Oct 11 '20 14:10 vkuncak