Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@neko-kai
Copy link
Member

@neko-kai neko-kai commented Jul 12, 2019

Fix error on Circle:
https://circleci.com/gh/zio/zio/6083

[error] /home/circleci/project/core/shared/src/main/scala/zio/Schedule.scala:80:3: The link target "ZSchedule.doUntil" is ambiguous. Several members fit the target:
[error] [A, B](pf: PartialFunction[A,B]): zio.Schedule[A,Option[B]] in object ZSchedule [chosen]
[error] [A](f: A => Boolean): zio.Schedule[A,A] in object ZSchedule
[error] 
[error] 
[error] Quick crash course on using Scaladoc links
[error] ==========================================
[error] Disambiguating terms and types: Prefix terms with '$' and types with '!' in case both names are in use:
[error]  - [[scala.collection.immutable.List!.apply class List's apply method]] and
[error]  - [[scala.collection.immutable.List$.apply object List's apply method]]
[error] Disambiguating overloaded members: If a term is overloaded, you can indicate the first part of its signature followed by *:
[error]  - [[[scala.collection.immutable.List$.fill[A](Int)(⇒A):List[A]* Fill with a single parameter]]]
[error]  - [[[scala.collection.immutable.List$.fill[A](Int,Int)(⇒A):List[List[A]]* Fill with a two parameters]]]
[error] Notes:
[error]  - you can use any number of matching square brackets to avoid interference with the signature
[error]  - you can use \\. to escape dots in prefixes (don't forget to use * at the end to match the signature!)
[error]  - you can use \\# to escape hashes, otherwise they will be considered as delimiters, like dots.
[error]   /**
[error]   ^
[error] /home/circleci/project/core/shared/src/main/scala/zio/Schedule.scala:74:3: The link target "ZSchedule.doUntil" is ambiguous. Several members fit the target:
[error] [A, B](pf: PartialFunction[A,B]): zio.Schedule[A,Option[B]] in object ZSchedule [chosen]
[error] [A](f: A => Boolean): zio.Schedule[A,A] in object ZSchedule
[error] 
[error]   /**
[error]   ^
[error] two errors found

@neko-kai neko-kai requested review from iravid and softinio July 12, 2019 13:18
@iravid
Copy link
Member

iravid commented Jul 12, 2019

method overloading is evil

@neko-kai neko-kai merged commit 97794d9 into zio:master Jul 12, 2019
@neko-kai neko-kai deleted the feature/fix-doc branch July 12, 2019 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants