Skip to content

Commit bb1c492

Browse files
committed
Start work on adding test for TypeUtils.resolveTypeForPipeCompletion infinite loop
1 parent cc9987e commit bb1c492

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/analysis_tests/tests/src/ExhaustiveSwitch.res

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,29 @@ let vvv = Some(x->getV)
4141
// switch withSomeVarian
4242
// ^com
4343
// ^ve-
44+
45+
module Sqlite = {
46+
module Transaction = {
47+
type t<'a>
48+
49+
external runImmediate: t<'a> => 'a = "immediate"
50+
}
51+
52+
module Database = {
53+
type t
54+
55+
external make: () => t = "default"
56+
57+
external transaction: (t, unit => 'a) => Transaction.t<'a> = "transaction"
58+
}
59+
}
60+
61+
let openSqliteDB = () => Sqlite.Database.make()
62+
63+
let transactionForProject = (fn) => {
64+
openSqliteDB()
65+
->Sqlite.Database.transaction(fn)
66+
->Sqlite.Transaction.runImmediate
67+
// ^xfm
68+
->ignore
69+
}

0 commit comments

Comments
 (0)