Skip to content

all-defined-out doesn't seem to work well with macro #2676

@sorawee

Description

@sorawee

When running the following a.rkt, I get the expected result:

#lang racket

(provide module++)
(require syntax/parse/define)

(define-simple-macro (module++ name base xs ...)
  (module name base
    (provide (all-defined-out))
    xs ...))

(module++ bar racket/base
          (define a 2))

(require 'bar)
a ;=> 2

However, running b.rkt, which uses module++ in a.rkt, fails.

#lang racket

(require my/a)

(module++ foo racket/base
          1)
provide: identifier's binding is ambiguous
  context...:
  matching binding...:
  matching binding...:
  matching binding...: in: provide

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