Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ object Transformer {

def transform(extern: core.Extern)(using BlocksParamsContext, ErrorReporter): Declaration = extern match {
case core.Extern.Def(name, tps, cparams, vparams, bparams, ret, capture, body) =>
if bparams.nonEmpty then ErrorReporter.abort("Foreign functions currently cannot take block arguments.")
if bparams.nonEmpty then ErrorReporter.abort("Foreign functions cannot take block arguments.")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this error message will only show up on LLVM (i.e. machine-based backends), maybe we'd want to specify this in the error message?


val transformedParams = vparams.map(transform)
noteDefinition(name, transformedParams, Nil)
Expand Down