See message: https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Namespace-based.20overloading.20does.20not.20find.20exports/near/287633118
9 lines
234 B
Text
9 lines
234 B
Text
protected def Nat.double (x : Nat) := 2*x
|
|
|
|
namespace Ex
|
|
export Nat (double) -- Add alias Ex.double for Nat.double
|
|
end Ex
|
|
|
|
open Ex
|
|
#check Ex.double -- Ok
|
|
#check double -- Error, `Ex.double` is alias for `Nat.double` which is protected
|