google / google/mangle

Analysis should report error when there are multiple declarations

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
157
PR merge metrics
No merged PRs in 30d

Description

I just spent some time wondering why my type declarations don't work.

I had

`Decl foo(X, Y, Z) descr [ extensional() ] bound [/x, /y, /z].`

and elsewhere (in a separate file) simply

`Decl foo(X, Y, Z) descr [ extensional() ].`

In my case the last one won and I couldn't get type inference to pick up the column types from `foo`.

The expected behavior is to signal an error when there is more than one type declaration in a program.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.