Skip to content

alias ignores noncomputable section #1097

@YaelDillies

Description

@YaelDillies

alias correctly handles noncomputable on a def, but not noncomputable on a section:

import Batteries.Tactic.Alias

noncomputable def foo : Nat := Classical.choice sorry

alias bar := foo -- works fine

noncomputable section

def baz : Nat := Classical.choice sorry

alias quux := baz
-- failed to compile definition, consider marking it as 'noncomputable' because it depends on 'baz',
-- and it does not have executable code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions