-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cgen error incompatible pointer type #23482
Comments
Connected to Huly®: V_0.6-21912 |
module edge
import webdriver.chromium {ChromiumDriver}
import webdriver.common {Edge}
pub struct EdgeDriver {
ChromiumDriver
}
pub fn EdgeDriver.init(options ?EdgeOptions, service ?EdgeService) ?EdgeDriver {
mut svc := service
mut opts := options
if svc == none { svc = EdgeService.init(none, 0, none, none, none, none) }
if opts == none { opts = EdgeOptions.init() }
if opts != none {
if svc != none {
bname := Edge{}.browser_name
drv := ChromiumDriver.init(bname, 'ms', opts, svc, true)
return EdgeDriver{ChromiumDriver: drv}
}
}
return none
}
|
module chromium
import webdriver.remote {RemoteWebDriver}
import webdriver.common {ArgOptions, Service}
// ChromiumDriver - Create a new WebDriver instance of the ChromiumDriver. Starts the
// service and then creates new WebDriver instance of ChromiumDriver.
//
// Args:
// - browser_name - Browser name used when matching capabilities.
// - vendor_prefix - Company prefix to apply to vendor-specific WebDriver extension commands.
// - options - this takes an instance of ChromiumOptions
// - service - Service object for handling the browser driver if you need to pass extra details
// - keep_alive - Whether to configure ChromiumRemoteConnection to use HTTP keep-alive.
pub struct ChromiumDriver {
RemoteWebDriver
browser_name ?string
vendor_prefix ?string
options ArgOptions
service ?Service
keep_alive bool = true
}
pub fn ChromiumDriver.init[T,S](browser_name string, vendor_prefix string, options T, service S, keep_alive bool) ChromiumDriver {
return ChromiumDriver{}
} |
Full code at vSelenium |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
V version: V 0.4.9 8c1d08a, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg -cg main.v && S:\vSelenium\main.exe
What did you see?
What did you expect to see?
Clean compile
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: