-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a bug in the extraction that missed some types hidden behind type…
… definition
- Loading branch information
1 parent
fc4fdde
commit 5d5d950
Showing
2 changed files
with
17 additions
and
2 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 |
---|---|---|
@@ -1,12 +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 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), 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