They are 2 separate arguments. The Sha Lek Hwy example is about a `=motorway` not needing a `ref=` . `=motorway` is different from `=trunk` . 
This is based on connecting to a `=motorway` only.  See Shun Long Rd, Tsing Yi N Coastal Rd.  