-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an extraction bug with type synonym definitions (#1595)
* fix a bug in the extraction that missed some types hidden behind type synonym definition
- Loading branch information
1 parent
0010368
commit a4cb53f
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import stainless.lang.Set | ||
import stainless.lang.Bag | ||
import stainless.collection.List | ||
import stainless.lang.Map | ||
import stainless.lang.MutableMap | ||
|
||
object Typedefs3 { | ||
type TypeSet[A] = Set[List[A]] | ||
type TypeBag[A] = Bag[List[A]] | ||
type TypeMap[A] = Map[Int, List[A]] | ||
type TypeMutableMap[A] = MutableMap[Int, List[A]] | ||
|
||
val t: TypeSet[Int] = Set(List(1, 2, 3), List(4, 5, 6)) | ||
val b: TypeBag[Int] = Bag((List(1, 2, 3), BigInt(3)), (List(4, 5, 6), BigInt(2))) | ||
val m: TypeMap[Int] = Map(1 -> List(1, 2, 3), 2 -> List(4, 5, 6)) | ||
val mm: TypeMutableMap[Int] = MutableMap.withDefaultValue[Int, List[Int]](() => List(1, 2, 3)) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters