Zulip Chat Archive

Stream: general

Topic: alias does not open namespace


Yaël Dillies (May 03 2024 at 11:44):

alias is inconsistent with def/theorem about whether the namespaces of the declarations should be automatically opened:

import Std.Tactic.Alias

def Foo.bar : Nat := 0

alias Foo.baz := bar -- unknown constant 'bar'

def Foo.baz := bar -- works

Damiano Testa (May 03 2024 at 11:45):

Nifty find!

Yaël Dillies (May 03 2024 at 19:32):

@Mario Carneiro, should I open an issue to Std?

Yaël Dillies (May 25 2024 at 12:00):

batteries#810


Last updated: May 02 2025 at 03:31 UTC