Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local attribute as prefix breaks doc comments #270

Closed
digama0 opened this issue May 25, 2020 · 0 comments
Closed

local attribute as prefix breaks doc comments #270

digama0 opened this issue May 25, 2020 · 0 comments

Comments

@digama0
Copy link
Member

digama0 commented May 25, 2020

MWE:

/-- `foo` is awesome -/
local attribute [simp] -- command does not accept doc string
def foo := false

local attribute [simp]        -- unknown declaration '_'
/-- `bar` is awesome too -/   -- invalid 'attribute' command, constant expected
def bar := true

/-- `baz` is the best -/
def baz : Prop := sorry
local attribute [simp] baz -- works

Actually you get the same behavior with attribute [simp] def foo, but in that case there is the alternative syntax @[simp] def foo which works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant