Skip to content

Commit

Permalink
add test file
Browse files Browse the repository at this point in the history
  • Loading branch information
JovanGerb committed May 17, 2024
1 parent 4dba92e commit d009ccd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lean/syntheticOpaqueReadOnly.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Lean

open Lean Meta

-- In a new MCtx depth, metavariables should not be assignable by `isDefEq`.

run_meta do
let m ← mkFreshExprMVar (Expr.sort levelOne) MetavarKind.syntheticOpaque
withAssignableSyntheticOpaque do
withNewMCtxDepth do
let eq ← isDefEq m (.const ``Nat [])
Lean.logInfo m! "{eq}"
1 change: 1 addition & 0 deletions tests/lean/syntheticOpaqueReadOnly.lean.expected.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
false

0 comments on commit d009ccd

Please sign in to comment.