# Type conversion error

**URL:** https://forum.syncthing.net/t/type-conversion-error/13578
**Category:** General
**Created:** [August 2, 2019, 6:33am UTC](https://forum.syncthing.net/t/type-conversion-error/13578 "2019-08-02T06:33:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hondfy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/hondfy/32/5634_2.png) [@hondfy](https://forum.syncthing.net/u/hondfy)
#### Post date: [August 2, 2019, 6:33am UTC](https://forum.syncthing.net/t/type-conversion-error/13578/1 "2019-08-02T06:33:49Z")

</div>

hello: I used the latest go version but still had the following error:

[github.com/syncthing/syncthing/lib/connections](http://github.com/syncthing/syncthing/lib/connections)

lib\connections\quic\_dial.go:97:34: cannot use &quicTlsConn literal (type \*quicTlsConn) as type tlsConn in field value:

\*quicTlsConn does not implement tlsConn (wrong type for ConnectionState method)

```
            have ConnectionState() handshake.ConnectionState
            want ConnectionState() tls.ConnectionState

```

lib\connections\quic\_listen.go:159:39: cannot use &quicTlsConn literal (type \*quicTlsConn) as type tlsConn in field value:

```
    *quicTlsConn does not implement tlsConn (wrong type for ConnectionState method)
            have ConnectionState() handshake.ConnectionState
            want ConnectionState() tls.ConnectionState

```

exit status 2  
exit status 1

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [August 2, 2019, 6:57am UTC](https://forum.syncthing.net/t/type-conversion-error/13578/2 "2019-08-02T06:57:16Z")

</div>

You need to make sure you use the vendored version of quic via go modules.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 2, 2019, 8:09am UTC](https://forum.syncthing.net/t/type-conversion-error/13578/3 "2019-08-02T08:09:52Z")

</div>

Or, to begin with, follow [https://docs.syncthing.net/dev/building.html](https://docs.syncthing.net/dev/building.html) and describe precisely what you’re doing when it fails.

(Because it works for us, and others.)

---

<div class="post-metadata">

### Author: ![hondfy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/hondfy/32/5634_2.png) [@hondfy](https://forum.syncthing.net/u/hondfy)
#### Post date: [August 6, 2019, 3:00am UTC](https://forum.syncthing.net/t/type-conversion-error/13578/4 "2019-08-06T03:00:40Z")

</div>

## Now is

lib\connections\quic\_dial.go:86:39: not enough arguments in call to session.OpenStreamSync

```
    have ()
    want (context.Context)

```

lib\connections\quic\_listen.go:118:34: not enough arguments in call to listener.Accept

```
    have ()
    want (context.Context)

```

lib\connections\quic\_listen.go:151:38: not enough arguments in call to session.AcceptStream

```
    have ()
    want (context.Context)

```

* * *

And then to

session.OpenStreamSync(context.Background())

listener.Accept(context.Background())

session.AcceptStream(context.Background())

Seems to be ok.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 6, 2019, 5:34am UTC](https://forum.syncthing.net/t/type-conversion-error/13578/5 "2019-08-06T05:34:32Z")

</div>

The build instructions. See above.

---

<div class="post-metadata">

### Author: ![hondfy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/hondfy/32/5634_2.png) [@hondfy](https://forum.syncthing.net/u/hondfy)
#### Post date: [August 6, 2019, 5:45am UTC](https://forum.syncthing.net/t/type-conversion-error/13578/6 "2019-08-06T05:45:32Z")

</div>

Just above
