github.com/nevalang/neva@v0.23.1-0.20240507185603-7696a9bb8dda/e2e/interface_with_imports/main/main.neva (about) 1 import { github.com/nevalang/x:main } 2 3 interface IPrinter<T>(data T) (sig T) 4 5 component { 6 Main(start any) (stop any) { 7 nodes { 8 SecondComponent { main.Println<any> } 9 } 10 :start -> secondComponent:msg 11 secondComponent:msg -> :stop 12 } 13 14 SecondComponent (msg any) (msg any) { 15 nodes { IPrinter<any> } 16 :msg -> iPrinter:data 17 iPrinter:sig -> :msg 18 } 19 }