Groups
Groups
Sign in
Groups
Groups
scala-graph
Conversations
Labels
About
Send feedback
Help
type inference not working for .toOuter; Scala 3, scala-graph 1.13.2
26 views
Skip to first unread message
Simon Leischnig
unread,
Jan 16, 2022, 8:52:23 AM
1/16/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala-graph
Hi,
I was giving scala-graph a go with a Scala 3 project. I try to reproduce the example given in
http://www.scala-graph.org/guides/core-inner-outer.html
. However, in line 3, there is unexpected behavior, I think:
```
val
g = Graph(1~2) // Graph[Int,UnDiEdge](1, 2, 1~2)
val
n1 = g.nodes.head // g.NodeT = 1 or 2
n1.toOuter // Int = 1 or 2 <--- not so: the type of n1 is inferred to `N`; the following line fails type check.
val n1o: Int = n1.toOuter // fails
```
Any suggestions on how to proceed?
Thanks,
Simon L.
Simon Leischnig
unread,
Jan 16, 2022, 8:53:46 AM
1/16/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala-graph
PS: I am also posting this here:
https://github.com/scala-graph/scala-graph/issues/217
empen...@gmail.com
unread,
Jan 30, 2022, 4:55:19 AM
1/30/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala-graph
see
https://github.com/scala-graph/scala-graph/issues/217
Reply all
Reply to author
Forward
0 new messages