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

"Unused inports" error #843

Open
emil14 opened this issue Jan 23, 2025 · 0 comments
Open

"Unused inports" error #843

emil14 opened this issue Jan 23, 2025 · 0 comments
Assignees
Labels

Comments

@emil14
Copy link
Collaborator

emil14 commented Jan 23, 2025

Output:

src/main.neva:3:4: Unused inports

Program:

import { fmt }

def Main(start any) (stop any) {

	println fmt.Println<string>
	fanin fanin // how to define multi inports at here?
	---
	'hello'->fanin:d1
	'world'->fanin:d2
	fanin:o1 -> println -> :stop
}
def fanin(d1 string, d2 string) (o1 string) {
	( :d1 + :d2 ) -> :o1
}

Problem:

  1. Ports are not mentioned
  2. Confuses that there is only one inport but it says inportS

Thanks @Mr-Ao-Dragon for finding this bug

@emil14 emil14 self-assigned this Jan 23, 2025
@emil14 emil14 added this to the Q1: Advanced dataflow patterns milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant