-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
I did a bad git rebase before merging #5283, which reverted it to an earlier version. This PR has the actual implementation of RFC #5397.
- Loading branch information
Showing
10 changed files
with
120 additions
and
115 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
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
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
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
tests/lean/missingExplicitWithForwardNamedDep.lean.expected.out
This file was deleted.
Oops, something went wrong.
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
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
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
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,33 @@ | ||
class Foo (α : Type) (β : Type) where | ||
val : Nat | ||
a : α | ||
b : β | ||
|
||
/-- info: Foo.val (α β : Type) [self : Foo α β] : Nat -/ | ||
#guard_msgs in #check Foo.val | ||
|
||
def valOf [s : Foo α β] : Nat := | ||
s.val | ||
|
||
/-- info: 10 -/ | ||
#guard_msgs in #eval valOf (s := { val := 10, a := true, b := false : Foo Bool Bool }) | ||
|
||
def valOf2 (α β : Type) [s : Foo α β] : Nat := | ||
s.val | ||
|
||
/-- info: valOf2 Bool Bool : Nat -/ | ||
#guard_msgs in #check valOf2 (s := { val := 10, a := true, b := false : Foo Bool Bool }) | ||
|
||
def f (x y z : Nat) := x + y + z | ||
|
||
/-- info: fun x y => f x y 10 : Nat → Nat → Nat -/ | ||
#guard_msgs in | ||
#check f (z := 10) | ||
|
||
def g {α : Type} (a b : α) := b | ||
/-- info: fun a => g a 10 : Nat → Nat -/ | ||
#guard_msgs in #check g (b := 10) | ||
|
||
def h (α : Type) (a b : α) := b | ||
/-- info: fun a => h Bool a true : Bool → Bool -/ | ||
#guard_msgs in #check h (b := true) |
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